/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved. 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.domain.bean;

import java.util.Date;

import com.smarthome.domain.bean.base.BaseDomain;

/**
 * shUserRole
 * @author KongXiangyu
 * @since 2015-09-07
 */
public class ShUserRole extends BaseDomain {

    private static final long serialVersionUID = 1L;
    private Long residenceId;
    private Long parentId;
    private Integer sortWeight;
    private String name;
    private String remark;  //备注
    private Integer active; //删除标识
    private Date gmtCreate;
    private Date gmtModify;
    
    /** 附加属性 **/
    private String parentName;
    private String residenceName;
    private ShUserRole parentShRole;
    /**以，分割开*/
    private String resourceIds;
    private String resourceNames;
    private ShResidence residence;

    public ShUserRole() {
        // 默认无参构造方法
    }

    /**
     * 获取 residenceId
     * @return
     */
    public Long getResidenceId() {
        return residenceId;
    }

    /**
     * 设置 residenceId
     * @param residenceId
     */
    public void setResidenceId(Long residenceId) {
        this.residenceId = residenceId;
    }

    /**
     * 获取 parentId
     * @return
     */
    public Long getParentId() {
        return parentId;
    }

    /**
     * 设置 parentId
     * @param parentId
     */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取 sortWeight
     * @return
     */
    public Integer getSortWeight() {
        return sortWeight;
    }

    /**
     * 设置 sortWeight
     * @param sortWeight
     */
    public void setSortWeight(Integer sortWeight) {
        this.sortWeight = sortWeight;
    }

    /**
     * 获取 name
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     * 设置 name
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取 gmtCreate
     * @return
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * 设置 gmtCreate
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * 获取 gmtModify
     * @return
     */
    public Date getGmtModify() {
        return gmtModify;
    }

    /**
     * 设置 gmtModify
     * @param gmtModify
     */
    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public ShUserRole getParentShRole() {
        return parentShRole;
    }

    public void setParentShRole(ShUserRole parentShRole) {
        this.parentShRole = parentShRole;
    }

    public String getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(String resourceIds) {
        this.resourceIds = resourceIds;
    }

    public String getResourceNames() {
        return resourceNames;
    }

    public void setResourceNames(String resourceNames) {
        this.resourceNames = resourceNames;
    }

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getActive() {
		return active;
	}

	public void setActive(Integer active) {
		this.active = active;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	public String getResidenceName() {
		return residenceName;
	}

	public void setResidenceName(String residenceName) {
		this.residenceName = residenceName;
	}

	public ShResidence getResidence() {
		return residence;
	}

	public void setResidence(ShResidence residence) {
		this.residence = residence;
	}

}